﻿using UnityEngine;
using System.Collections;

public class EnemyBase : MonoBehaviour 
{
    public float speed = 5;
    protected Global.State state = Global.State.Disabled;

    public int Minimum_Height_Instansiate = 5;
    public int Maximum_Height_Instansiate = 25;

    public float Minimum_TIME_Instansiate = 0.0f;
    public float Maximum_TIME_Instansiate = 3.0f;
    protected float currentTimeInstansiate = 0;

    protected bool isAlive = false;
    protected int startingXpos = -20;
    protected int startingYpos = 0;

	// Use this for initialization
	virtual protected void Start () 
    {
       
        
	}

    protected void getRandomTimeInstantiate()
    {
        currentTimeInstansiate = Random.Range(Minimum_TIME_Instansiate, Maximum_TIME_Instansiate);
    }

    protected void getRandomYpos()
    {
        startingYpos = Random.Range(Minimum_Height_Instansiate, Maximum_Height_Instansiate);

    }

    public void setIsAlive(bool iIsAlive)
    {
        isAlive = iIsAlive;
    }

    virtual public void Init()
    {
    }
	
	// Update is called once per frame
    protected void Update() 
    {
	
	}
}



//nirnile 